package com.service.impl;

import com.dao.UserDao;
import com.dao.impl.UserDaoImpl;
import com.domain.User;
import com.service.UserService;

public class UserServiceImpl implements UserService {
    UserDao dao = new UserDaoImpl();

    @Override
    public Boolean save(User user) {

        return dao.save(user);
    }

    @Override
    public Boolean delete(int id) {

        return dao.delete(id);
    }

    @Override
    public User selectOne(User user) {

        return dao.selectOne(user);
    }
}
